home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form Algorithms
- Caption = "Algorithms"
- ClientHeight = 3810
- ClientLeft = 1365
- ClientTop = 1545
- ClientWidth = 7305
- ClipControls = 0 'False
- Height = 4215
- Left = 1305
- LinkTopic = "Form1"
- ScaleHeight = 3810
- ScaleWidth = 7305
- Top = 1200
- Width = 7425
- Begin Frame Frame1
- Caption = "Frame1"
- Height = 1575
- Left = 240
- TabIndex = 0
- Top = 240
- Width = 5655
- Begin CheckBox Check1
- Caption = "AutoRedraw"
- Height = 255
- Left = 240
- TabIndex = 6
- Top = 1200
- Width = 2175
- End
- Begin OptionButton optLineStyle
- Caption = "Lines using Vars"
- Height = 375
- Index = 1
- Left = 240
- TabIndex = 2
- Top = 720
- Width = 2895
- End
- Begin OptionButton optLineStyle
- Caption = "Lines using Properties"
- Height = 255
- Index = 0
- Left = 240
- TabIndex = 1
- Top = 360
- Width = 2775
- End
- Begin Label Label1
- Caption = "Label1"
- Height = 255
- Left = 240
- TabIndex = 5
- Top = 1200
- Width = 2295
- End
- Begin Label lblAlgorithm
- Caption = "00.00 secs."
- Height = 255
- Index = 1
- Left = 4080
- TabIndex = 4
- Top = 840
- Width = 1335
- End
- Begin Label lblAlgorithm
- AutoSize = -1 'True
- Caption = "00.00 secs."
- Height = 375
- Index = 0
- Left = 4080
- TabIndex = 3
- Top = 360
- Width = 1215
- WordWrap = -1 'True
- End
- End
- Sub Check1_Click ()
- Cls
- Me.AutoRedraw = Not Me.AutoRedraw
- End Sub
- Sub Form_Load ()
- label1 = "AutoRedraw = " & Me.AutoRedraw
- End Sub
- Sub Form_Paint ()
- Cls
- If optLineStyle(0) Then
- Start = Timer
- For Y = 1 To Me.ScaleHeight Step 5
- Line (0, (Me.ScaleHeight - Y))-(Me.ScaleWidth, (Me.ScaleHeight - Y))
- Next Y
- Finish = Timer
- lblAlgorithm(0) = Format$(Finish - Start, "##.##") & " secs."
- Else
- frmWidth = Me.ScaleWidth
- frmHeight = Me.ScaleHeight
- Start = Timer
- For Y = 1 To frmHeight Step 5
- X = frmHeight - Y
- Line (0, X)-(frmWidth, X)
- Next Y
- Finish = Timer
- lblAlgorithm(1) = Format$(Finish - Start, "##.##") & " secs."
- End If
- End Sub
-